%Image Processing Assignment - 1
%Name: - Kirtish Dhande
%Class: - B.E. - C
%Roll no: - 54
%This program is used to create a circle in the center.
%Date of assignment - 12/01/2016

clc;
clear all;
close all;

%A will have a 512x512 array of zeroes.
A=zeros(512);

%The formula we used is X^2 + Y^2 = R^2.
% We painted the circle region as white and rest as black.
for i=1:512
    for j=1:512
        if ((i-256)^2 + (j-256)^2 <= 4000)
            A(i,j)=1;
        end
    end
end

%Displays the image in A.
imshow(A);